// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/reset.css'
import './assets/css/my.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Direcitve from './directive/directive'
import Filter from './filter/filter'
import store from './store'
import util from './utils/util.class'


Vue.use(ElementUI);
Vue.prototype.$util = util;

Vue.config.productionTip = false;
// 自定义指令 全局使用
Object.keys(Direcitve).forEach(key => {
  Vue.directive(key, Direcitve[key])
});
// 自定义过滤器 全局使用
Object.keys(Filter).forEach(key => {
  Vue.filter(key, Filter[key])
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});
